import { Switch, Route } from 'react-router-dom'
import Order from './Order'
import OrderDetail from './OrderDetail'

import './style.less'

function index() {
  return (
    <Switch>
      <Route path="/order/list/:category?" component={Order} />
      <Route path="/order/detail/:id" component={OrderDetail} />
    </Switch>
  )
}

export default index
